home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Communications / AppleTalk Remote access / Scripts ARA ƒ / PSI PowerModem IV < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.8 KB  |  193 lines  |  [mlts/slnk]

  1. ! "PSI PowerModem IV - 10/12/92   HYC"
  2. !
  3. @ORIGINATE
  4. @ANSWER
  5. !
  6. serreset 19200, 0, 8, 1
  7. !
  8. matchclr
  9. settries 0
  10. matchstr 1 4 "OK\13\10"
  11. @LABEL 1
  12. write "AT&F\13"
  13. matchread 30
  14. inctries
  15. iftries 2 59
  16. jump 1
  17. !
  18. @LABEL 4
  19. pause 5
  20. matchstr 1 5 "OK\13\10"
  21. write "AT&D3&Q6S0=0E0\13"
  22. matchread 30
  23. jump 59
  24. !
  25. @LABEL 5
  26. pause 5
  27. matchstr 1 6 "OK\13\10"
  28. write "ATS48=128S36=3S95=1X4\13"
  29. matchread 30
  30. jump 59
  31. !
  32. @LABEL 6
  33. ifstr 2 8 "1"
  34. pause 5
  35. matchstr 1 8 "OK\13\10"
  36. write "ATM0\13"
  37. matchread 30
  38. jump 59
  39. !
  40. @LABEL 8
  41. pause 5
  42. ifANSWER 30
  43. note "Dialing ^1" 3
  44. write "ATDT^1\13"
  45. !
  46. @LABEL 9
  47. matchstr 1 11 "CONNECT 1200\13\10"
  48. matchstr 2 12 "CONNECT 2400\13\10"
  49. matchstr 3 13 "CONNECT 4800\13\10"
  50. matchstr 4 19 "CONNECT 7200\13\10"
  51. matchstr 5 14 "CONNECT 9600\13\10"
  52. matchstr 6 20 "CONNECT 12000\13\10"
  53. matchstr 7 18 "CONNECT 14400\13\10"
  54. matchstr 8 50 "NO CARRIER\13\10"
  55. matchstr 9 50 "ERROR\13\10"
  56. matchstr 10 52 "NO DIALTONE\13\10"
  57. matchstr 11 53 "BUSY\13\10"
  58. matchstr 12 54 "NO ANSWER\13\10"
  59. matchread 700
  60. jump 59
  61. !
  62. @LABEL 11
  63. note "Communicating at 1200 bps." 2
  64. CommunicatingAt 1200
  65. jump 15
  66. !
  67. @LABEL 12
  68. note "Communicating at 2400 bps." 2
  69. CommunicatingAt 2400
  70. jump 15
  71. !
  72. @LABEL 13
  73. note "Communicating at 4800 bps." 2
  74. CommunicatingAt 4800
  75. jump 15
  76. !
  77. @LABEL 19
  78. note "Communicating at 7200 bps." 2
  79. CommunicatingAt 7200
  80. jump 15
  81. !
  82. @LABEL 14
  83. note "Communicating at 9600 bps." 2
  84. CommunicatingAt 9600
  85. jump 15
  86. !
  87. @LABEL 20
  88. note "Communicating at 12000 bps." 2
  89. CommunicatingAt 12000
  90. jump 15
  91. !
  92. @LABEL 18
  93. note "Communicating at 14400 bps." 2
  94. CommunicatingAt 14400
  95. jump 15
  96. !
  97. @LABEL 15
  98. HSReset 0 1 0 0 0 0 
  99. ifANSWER 16
  100. pause 30
  101. @LABEL 16
  102. exit 0
  103. !
  104. @LABEL 30
  105. write "ATS0=1\13"
  106. matchstr 1 31 "OK\13\10"
  107. matchread 30
  108. jump 59
  109. !
  110. @LABEL 31
  111. matchstr 1  32 "RING\13\10"
  112. matchstr 2  11 "CONNECT 1200\13\10"
  113. matchstr 3  12 "CONNECT 2400\13\10"
  114. matchstr 4  13 "CONNECT 4800\13\10"
  115. matchstr 5    19 "CONNECT 7200\13\10"
  116. matchstr 6  14 "CONNECT 9600\13\10"
  117. matchstr 7    20 "CONNECT 12000\13\10"
  118. matchstr 8  18 "CONNECT 14400\13\10"
  119. matchstr 9  50 "NO CARRIER\13\10"
  120. matchstr 10    50 "ERROR\13\10"
  121. matchstr 11    52 "NO DIALTONE\13\10"
  122. matchstr 12    53 "BUSY\13\10"
  123. matchstr 13 54 "NO ANSWER\13\10"
  124. matchread 700
  125. jump 31
  126. !
  127. @LABEL 32
  128. userhook 1
  129. note "Answering phone…" 2
  130. jump 31
  131. !
  132. ! 50: error messages
  133. !
  134. @LABEL 50
  135. exit -6021
  136. !
  137. @LABEL 52
  138. exit -6020
  139. !
  140. @LABEL 53
  141. exit -6022
  142. !
  143. @LABEL 54
  144. exit -6023
  145. !
  146. @LABEL 59
  147. exit -6019
  148. !
  149. ! Hang up 
  150. !
  151. @HANGUP
  152. @LABEL 60
  153. settries 0
  154. HSReset 0 0 0 0 0 0 
  155. @LABEL 61
  156. write "ATH\13"
  157. matchclr
  158. matchstr 1 62 "NO CARRIER\13\10"
  159. matchstr 2 62 "OK\13\10"
  160. matchstr 3 62 "ERROR\13\10"
  161. matchread 30
  162. inctries
  163. iftries 3 62
  164. !
  165. write "+++"
  166. matchclr
  167. matchstr 1 61 "OK\13\10"
  168. matchread 15
  169. DTRClear
  170. pause 15
  171. DTRSet
  172. pause 15
  173. jump 61
  174. !
  175. @LABEL 62
  176. pause 15
  177. write "AT&F\13"
  178. matchclr
  179. matchstr 1 63 "OK\13\10"
  180. matchread 30
  181. !
  182. @LABEL 63
  183. pause 5
  184. matchstr 1 64 "OK\13\10"
  185. write "ATS0=0\13"
  186. matchread 20
  187. !
  188. @LABEL 64
  189. exit 0
  190.  
  191.